﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PlanDetailThree_Month.ascx.cs"
    Inherits="Thksoft.UserCotrols.PlanDetailThree_Month" %>
<script type="text/javascript">
    $(function () {
        window.PrintEventArry[<%=(proType+2) %>].Html = $("#<%=print_div.ClientID %>").html();
    });

    function projectShow3(nId,type, PlanApp_Id, proId) {
        var Code = "";
        var year = $("#<%=HiddenField1.ClientID %>").val();
        var month = $("#<%=HiddenField2.ClientID %>").val();
        switch (type) {
            case 1: Code = "T3"; break;
            case 2: Code = "T4"; break;
            case 3: Code = "T5"; break;
            default: Code = "T6"; break;
        }
        var title = document.getElementById("<%=lblProjectName.ClientID%>").innerHTML;
        if (nId == undefined || nId == 0) {
            return;
        }

        var option = {};
        option.Url = "/Module/ProjectDetails/BankList_ProjectDetails.aspx?ISTRUE=MONTH&NId=" + nId + "&DetailsCode=" + Code + "&PLANAPP_ID=" + PlanApp_Id + "&YEAR=" + year + "&MONTH=" + month + "&PRO_ID=" + proId;
        option.Area = ['850px', '500px'],
        option.Area = ['850px', '500px'],
        option.Title = title + "_银行流水详情";
        top.MessageBox.Load(option);
    }
</script>
<asp:Panel ID="Panel1" runat="server">
    <table id="print_div" runat="server" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="text-align: center; font-size: 16px; font-weight: bold; height: 30px;">
                <asp:Label ID="lblProjectName" runat="server" Font-Size="16px" Font-Bold="true" />（
                <asp:Label ID="lblyear" runat="server" />
                ）
            </td>
        </tr>
        <tr>
            <td>
                <div style="float: left; width: 100%;">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                        <tr>
                            <td style="width: 100px; padding-right: 3px; text-align: right;">编制单位：
                            </td>
                            <td style="text-align: left; padding-left: 3px;">
                                <asp:Label ID="lbldw" runat="server" />
                            </td>
                            <td style="width: 100px; text-align: right; padding-left: 3px;">
                                <%--<input type="hidden" runat="server" id="hidId" />
                                                申请人：<asp:Label ID="lblUser" runat="server" />
                                                &nbsp;&nbsp;&nbsp; &nbsp;--%>
                                填报时间：
                            </td>
                            <td style="text-align: left; padding-left: 3px;">
                                <asp:Label ID="lblTime" runat="server" />
                                <input type="hidden" runat="server" id="Hidden1" />
                            </td>
                            <td style="width: 100px;">金额单位：万元
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <style type="text/css">
                    .cont_list.zebra tr td.left {
                        text-align: left;
                        padding: 0 10px;
                        text-indent: 0px;
                    }

                    .cont_list.zebra tr td.right {
                        text-align: right;
                        padding: 0 10px;
                    }
                </style>
                <asp:GridView ID="grvShow3" runat="server" AutoGenerateColumns="False" CssClass="cont_list zebra"
                    Width="100%" EmptyDataText="没有查找到您要的数据">
                    <Columns>
                        <asp:BoundField DataField="R" HeaderText="序号" SortExpression="r" ItemStyle-Width="45px" />
                        <asp:BoundField DataField="C_CUSTOMER_NAME" HeaderText="单位名称" SortExpression="C_CUSTOMER_NAME" ItemStyle-CssClass="left" />
                        <asp:TemplateField HeaderText="账面应付余额" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Eval("N_GZAMOUNT")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="本月申请金额" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Eval("N_PLANAMOUNT")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="本月审批资金" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Eval("N_REAMOUNT")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="周累计审批金额" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Eval("N_WEEK_AMOUNT")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="周累计已支付金额" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-CssClass="right">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Eval("N_WEEK_USEAMOUNT")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="N_GOL" HeaderText="流入率" SortExpression="N_GOL" ItemStyle-CssClass="right" />
                        <asp:BoundField DataField="C_REMARK" HeaderText="备注" SortExpression="C_REMARK" ItemStyle-CssClass="left" />
                        <asp:TemplateField HeaderText="流水详情" ItemStyle-Width="45px">
                            <ItemTemplate>
                                <img <%#Eval("N_ID3")==DBNull.Value?"class='hide'":"" %> src="/Images/XiangXi.png"
                                    style="width: 16px; height: 16px;" onclick='projectShow3(<%#Eval("N_ID3") %>,<%#Eval("N_PROTYPE") %>,<%#Eval("N_PLANAPP_ID") %>,<%#Eval("N_PRO_ID") %>);'
                                    title="查看详细" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="text-align: center; height: 30px;">
                <span style="float: left; padding-right: 10px;">申请单位财务总监：<asp:Label ID="lblBzyj"
                    runat="server" /></span> <span style="float: inherit;">申请单位财务部门负责人：<asp:Label ID="lblUser"
                        runat="server" /></span> <span style="float: right; padding-right: 100px;">申请单位填报人：<asp:Label
                            ID="Label1" runat="server" />
            </td>
        </tr>
    </table>
    <div>
        <asp:HiddenField runat="server" ID="FORM_PRINT_VALUE" />
        <asp:HiddenField runat="server" ID="HiddenField1" />
        <asp:HiddenField runat="server" ID="HiddenField2" />
    </div>
</asp:Panel>